function loadFirstStep(firstId,secondId,cateEname,fatherValue,ctx) {
	//alert("firstId="+firstId+",secondId="+secondId+",cateEname="+cateEname+",fatherValue="+fatherValue+ctx);
		$('#'+firstId).combobox({
			url : ctx+'/dictSelect.action?cateEname='+cateEname+'&fatherValue='+fatherValue,
			valueField : 'id',
			editable : false,
			textField : 'text',
			editable : false,
			onChange : function() {
				reloadSecondStep(firstId,secondId,cateEname,ctx);
			}
		});
	}
//获取单一数据字典科目项
function loadFirstDictJson(cateEname,elemid,ctx,selval) {
	$.ajax({
		type:'post',
		async:false,
		url:ctx+'/dictSelect.action?cateEname='+cateEname+'&fatherValue=0',
		dataType:'json',
		success:function(data){
			for(var k in data){
				//alert("id:"+data[k].id+" text:"+data[k].text);
				if(selval==data[k].id){
					$('#'+elemid).append("<option value='"+data[k].id+"' selected>"+data[k].text+"</option>");
				}else{
					$('#'+elemid).append("<option value='"+data[k].id+"'>"+data[k].text+"</option>");
				}
			}
		},
		error:function(){
		 alert("请检查服务器！");
		}
	});
}

  function reloadSecondStep(firstId,secondId,cateEname,ctx) {
		var tmp = $('#'+firstId).combobox('getValue');
		$('#'+secondId).combobox('clear');
		if (tmp.length > 0) {
			var urlTmp = ctx+'/dictSelect.action?cateEname='+cateEname+'&fatherValue='
					+ tmp;
			$('#'+secondId).combobox('reload', urlTmp);
			//alert(cityUrlTmp);
		} else {
			$('#'+secondId).combobox('loadData', []);
		}
	}
	
	function loadSecondStep(secondId,cateEname,fatherValue,ctx) {
		var url = ctx + '/dictSelect.action?cateEname='+cateEname+'&fatherValue='+fatherValue;
		$('#'+secondId).combobox({
			url : url,
			valueField : 'id',
			textField : 'text',
			editable : false,
			textField : 'text'

		});
	}
	
	function loadDiceOneStep(firstId,cateEname,fatherValue,ctx) {
			$('#'+firstId).combobox({
				url : ctx+'/dictSelect.Srv?cateEname='+cateEname+'&fatherValue='+fatherValue,
				valueField : 'id',
				editable : false,
				textField : 'text',
				editable : false
			});
		}